home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / jed096_1.zip / SLANG / SRC / MAKEFILE.UNX < prev    next >
Text File  |  1994-04-26  |  700b  |  29 lines

  1. # S-Lang Makefile for Unix
  2. # If your system does not have stdlib.h, remove '#' before -DNO_STDLIB_H
  3. # below  (e.g., NeXt, sequent,..)
  4. CFLAGS = -O -DFLOAT_TYPE     # -DNO_STDLIB_H
  5.  
  6. # Note that to enable double precision floating point, add the -DUSE_DOUBLE
  7. # to the CFLAGS macro.
  8.  
  9. # C compiler.  For SunOS, use gcc
  10. CC = cc -O  # gcc -O6 -Wall
  11.  
  12. OBJS = slang.o slparse.o slmath.o slfile.o slstd.o slarray.o slregexp.o \
  13.        slunix.o slmatrix.o
  14.  
  15. EXEC = calc
  16. RANLIB = ranlib
  17.  
  18. libslang.a: ${OBJS}
  19.     rm -f libslang.a
  20.     ar cr libslang.a ${OBJS}
  21.     $(RANLIB) libslang.a
  22.  
  23. calc: calc.o libslang.a
  24.     $(CC) $(CFLAGS) calc.o -L. libslang.a -lm -o $(EXEC)
  25.  
  26. export:
  27.     export -f slang.lis
  28.